package com.cesgroup.zw.spring.boot.library.echarts.pieAndGauge.complex;

import com.cesgroup.zw.spring.boot.echarts.component.series.Gauge;
import com.cesgroup.zw.spring.boot.echarts.model.axis.AxisLabel;
import com.cesgroup.zw.spring.boot.echarts.model.axis.AxisLine;
import com.cesgroup.zw.spring.boot.echarts.model.axis.AxisTick;
import com.cesgroup.zw.spring.boot.echarts.model.axis.SplitLine;
import com.cesgroup.zw.spring.boot.echarts.model.series.Pointer;
import com.cesgroup.zw.spring.boot.echarts.model.style.LineStyle;
import com.cesgroup.zw.spring.boot.echarts.model.style.TitleStyle;

/**
 * @author ytj
 * @date 2019/7/4 16:55
 */
@SuppressWarnings("serial")
public class ComplexGaugeSeries extends Gauge{
    public ComplexGaugeSeries(ComplexPieAndGaugeParam param){
        this.setRadius("50%");
        this.setStartAngle(0);
        this.setEndAngle(359);
        this.setSplitNumber(90);
        this.setAxisTick(new AxisTick(){{
            this.setShow(false);
        }});
        this.setSplitLine(new SplitLine(){{
            this.setLength(50);
            this.setLineStyle(new LineStyle(){{
                this.setWidth(5);
                this.setColor("#010219");
            }});
        }});
        this.setAxisLabel(new AxisLabel(){{
            this.setShow(false);
        }});
        this.setPointer(new Pointer(){{
            this.setShow(false);
        }});
        this.setAxisLine(new AxisLine(){{
            this.setLineStyle(new LineStyle(){{
                this.setOpacity(0);
            }});
        }});
        this.setDetail(new TitleStyle(){{
            this.setShow(false);
        }});
    }
}
